package com.burstly.lib.component.networkcomponent.burstly.html;

import android.graphics.Bitmap;
import android.webkit.WebView;
import com.burstly.lib.component.AbstractAdaptor.AdaptorListenerWrapper;
import com.burstly.lib.component.IBurstlyAdaptorListener;
import com.burstly.lib.util.LoggerExt;

class ScriptBannerWebClient extends RedirectClickListener
{
  private static final LoggerExt LOG = LoggerExt.getInstance();
  private static final String TAG = ScriptBannerWebClient.class.getSimpleName();

  ScriptBannerWebClient(AbstractAdaptor.AdaptorListenerWrapper paramAdaptorListenerWrapper, String paramString, boolean paramBoolean, UrlProvider paramUrlProvider)
  {
    super(paramAdaptorListenerWrapper, paramString, paramBoolean, paramUrlProvider);
  }

  public void onLoadResource(WebView paramWebView, String paramString)
  {
    super.onLoadResource(paramWebView, paramString);
    LOG.logDebug(TAG, "onLoadResource: {0}", new Object[] { paramString });
  }

  public void onPageFinished(WebView paramWebView, String paramString)
  {
    getAdaptorListener().didLoad(getNetworkName(), isFullscreen());
  }

  public void onPageStarted(WebView paramWebView, String paramString, Bitmap paramBitmap)
  {
    super.onPageStarted(paramWebView, paramString, paramBitmap);
    LOG.logDebug(TAG, "onPageStarted: {0}", new Object[] { paramString });
  }

  public void onReceivedError(WebView paramWebView, int paramInt, String paramString1, String paramString2)
  {
    String str = "Failed to load " + paramString2 + " because of " + paramString1;
    LOG.logError(TAG, str, new Object[0]);
    getAdaptorListener().failedToLoad(getNetworkName(), isFullscreen(), str);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.ScriptBannerWebClient
 * JD-Core Version:    0.6.2
 */